package com.celeritymq.server.buffer;

import javax.jms.Destination;
import javax.jms.Queue;

import com.celeritymq.destination.CelerityQueue;
import com.celeritymq.destination.CelerityTemporaryQueue;

/**
 * 
 * @author max
 * 用来缓冲queue消息
 */
public interface QueueBuffer{

	public void addToHead(CelerityQueue destination);
	
	public void addToTail(CelerityQueue destination);

	public CelerityQueue pollQueue();

	public void addToHead(CelerityTemporaryQueue queue);
	
	public void addToTail(CelerityTemporaryQueue queue);
	
	public CelerityTemporaryQueue pollTemporaryQueue();
}
